<template>
	<view class="container">
		<!-- 资产信息 -->
		<view class="header">
			<view class="money colorfff" @tap="totalDetail">
				<view class="mon_top">
					<text class="font26 colorb6">总资产</text>
					<text class="font36">36588742.00</text>
				</view>
				<view class="mon_bot m_t30">
					<view class="mon_left">
						<text class="font26 colorb6">折合人民币</text>
						<text class="font30">3,125.00</text>
					</view>
					<view class="mon_right">
						<text class="font26 colorb6">折合美元</text>
						<text class="font30">3,125.00</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 充值 -->
		<view class="charge border_bottom_ef" @tap="go(1)">
			<view class="left font34">
				<image class="m_r10" src="../../static/equity_img/recharge.png" mode=""></image>
				<text>充值</text>
			</view>
			<view class="right font26">
				<text>快速到账</text>
				<image class="m_l20" src="../../static/my_img/arrow_r.png" mode=""></image>
			</view>
		</view>
		<!-- 提现 -->
		<view class="charge" @tap="go(2)">
			<view class="left font34">
				<image class="m_r10" src="../../static/equity_img/cash.png" mode=""></image>
				<text>提现</text>
			</view>
			<view class="right font26">
				<text>快速到账</text>
				<image class="m_l20" src="../../static/my_img/arrow_r.png" mode=""></image>
			</view>
		</view>
		<!-- 账单 -->
		<view class="charge m_t30" @tap="go(3)">
			<view class="left font34">
				<image class="m_r10" src="../../static/equity_img/bill.png" mode=""></image>
				<text>账单</text>
			</view>
			<view class="right font26">
				<text>查询账单</text>
				<image class="m_l20" src="../../static/my_img/arrow_r.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			go (id) {
				if (id == 1) {
					uni.navigateTo({
						url: "./recharge"	//充值
					})
				} else if (id == 2) {
					uni.navigateTo({
						url: "./cash"		//提现
					})
				} else if (id == 3) {
					uni.navigateTo({
						url: "../my/bill_details"	//账单
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		height: 100%;
		overflow: hidden;
	}

	.container {
		height: 100%;
		background: #f8f8f8;
		border-top: 1upx solid #EFEFF0;
		.header {
			display: flex;
			justify-content: center;
			background: #fff;
			padding: 26upx 32upx 0 32upx;

			// 资产信息
			.money {
				width: 100%;
				height: 250upx;
				padding: 30upx;
				border-radius: 10upx;
				display: flex;
				flex-direction: column;
				justify-content: center;
				background: linear-gradient(top, #3e9dff, #5e60e8);
				
				.mon_top {
					display: flex;
					flex-direction: column;
				}

				.mon_bot {
					display: flex;
					justify-content: space-between;

					.mon_left,
					.mon_right {
						width: 50%;
						display: flex;
						flex-direction: column;
					}
					
					.mon_left {
						border-right: 1upx solid #6372f2;
					}
					.mon_right {
						padding-left: 30upx;
					}
				}
			}
		}
		
		.charge {
			width: 100%;
			padding: 30upx 32upx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background: #fff;
			
			.left {
				display: flex;
				align-items: center;
				image {
					width: 56upx;
					height: 56upx;
				}
			}
			
			.right {
				display: flex;
				color: #aeaeae;
				align-items: center;
				image {
					width: 14upx;
					height: 20upx;
				}
			}
		}
	}
</style>
